﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Domain.Entities;//引用

namespace WisDom.SmartTMS.Entities
{
    /// <summary>
    /// 货主表
    /// </summary>
   public class Shipper:BasicAggregateRoot<Guid>
    {
        public Shipper()
        {

        }
        /// <summary>
        /// 货主姓名
        /// </summary>
        public string ShipperName { get; set; }
        /// <summary>
        /// 手机号
        /// </summary>
        public string MobilePhoto { get; set; }
        /// <summary>
        /// 单位名称
        /// </summary>
        public string CompanyName { get; set; }

        /// <summary>
        /// 联系地址
        /// </summary>
        public string Address { get; set; }

        /// <summary>
        /// 驾驶证有效期
        /// </summary>
        public DateTime? LicenseValidity { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string Remark { get; set; }

        /// <summary>
        /// 驾驶证照片
        /// </summary>
        public string LlicencePhoto { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreateTime { get; set; }

        /// <summary>
        /// 创建人
        /// </summary>
        public Guid? CreatorId { get; set; }

        /// <summary>
        /// 是否删除
        /// </summary>
        public Boolean Deleted { get; set; }


        public Shipper(Guid id, string shipperName,string mobilePhoto,string companyName,string address,DateTime? licenseValidity,string remark,string llicencePhoto,Guid? creatorId)
        {
            Id = id;//主键
            ShipperName = shipperName;
            MobilePhoto = mobilePhoto;
            CompanyName = companyName;
            Address = address;
            LicenseValidity = licenseValidity;
            Remark = remark;
            LlicencePhoto = llicencePhoto;
            CreatorId = creatorId;
            CreateTime = DateTime.Now;
            Deleted = true;
        }
    }
}
